# @Author   :   hany
# @Time      :  2021/5/21
from basic.device.Android import Android
from airtest.core.api import *

class financePage(Android):
    @classmethod
    def getEnterpriseFinanceText(self):
        sleep(3)
        indexText = self.poco(text="金融产品").wait(3)
        if indexText.exists():
            return True

    @classmethod
    def getPerFinanceText(self):
        indexPerText = self.poco(desc="理财").wait(3)
        if indexPerText.exists():
            return True
    @classmethod
    def getBhFinanceText(self):
        indexBhText = self.poco(desc="OK信用卡").wait(3)
        if indexBhText.exists():
            return True
